package com.lihuanyu.upcOA.service;

import com.lihuanyu.upcOA.conn.databaseUtil;
import com.lihuanyu.upcOA.model.adviceTable;

/**
 * Created by LENOVO on 2015/8/31.
 */
public class getadvie {
    public int i;
    public int dbadvice(adviceTable advice){
            String sql="INSERT INTO `device`(`username`, `email`, `content`) VALUES ('"+advice.getUsername()
                    +"','"+advice.getEmail()+"','"+advice.getContent()+"')";
            databaseUtil db = new com.lihuanyu.upcOA.conn.databaseUtil();
            i=db.Update(sql);
            db.sqlclose();
            return i;
    }
}
